package com.ruoyi.web.controller.monggo;

import com.github.pagehelper.PageInfo;
import com.ruoyi.system.domain.mongodb.Teacher;
import com.ruoyi.system.service.mongo.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author yangtao
 * @since 2021-03-02 17:12
 */
@RestController
@RequestMapping("/system/teacher/")
public class TeacherController {
    @Autowired
    TeacherService teacherService;
    /**
     * 查询教师信息
     * @return
     */
    @GetMapping("list")
    public PageInfo<Teacher> teacherList(String realname,String phoneNum, String schoolId,Integer pageNum,Integer pageSize){
        PageInfo<Teacher> pageInfo = teacherService.teacherList(realname,phoneNum, schoolId,pageNum,pageSize);
        return pageInfo;
    }
}


